const state = {
    // 是否登录
    isLogin: false,

    // 当前登录用户
    userName: "张三",
}

const mutations = {
    // 设置登录状态
    setLoginState(state, status) {
        state.isLogin = status
    },
}

const actions = {}

const getters = {}

export default {
    namespaced: true,
    state,
    mutations,
    actions,
    getters
}
